#!/bin/bash

buildRoot=/build
installDstRoot=/usr/local

srcRoot=$buildRoot/src
buildTmpRoot=$buildRoot/tmp
pkgRoot=$buildRoot/pkg
scriptRoot=$buildRoot/script

$scriptRoot/pre_build.sh

cd $installDstRoot
tar zxvf $pkgRoot/redis-4.0.8.tar.gz

ln -s redis-4.0.8 redis
cp $pkgRoot/redis-trib.rb redis/bin

source $HOME/.bashrc
gem install redis

echo -e '\nPATH=$PATH:/usr/local/redis/bin' >> $HOME/.bashrc
